-- GENERATED SPELL FOR [Nexus Watcher] --


function spell0_24770(pUnit, Event) --@Intangible Presence,n/a--
pUnit:FullCastSpellOnTarget(36513,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24770', 8315, 1)
end

function spell1_24770(pUnit, Event) --@Netherbreath,n/a--
pUnit:FullCastSpellOnTarget(36631,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24770', 5500, 1)
end

function Sorts_24770(pUnit, Event)
local choix_sorts_24770 = math.random(0, 1)
if choix_sorts_24770 == 0 then
pUnit:RegisterEvent('spell0_24770', 1, 1)
end
if choix_sorts_24770 == 1 then
pUnit:RegisterEvent('spell1_24770', 1, 1)
end
end

function mob24770_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24770', math.random(1500, 3000), 1)
end

function mob24770_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24770_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24770_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24770, 1, 'mob24770_Action')
RegisterUnitEvent(24770, 2, 'mob24770_Leave')
RegisterUnitEvent(24770, 3, 'mob24770_Kill')
RegisterUnitEvent(24770, 4, 'mob24770_Die')
